package com.songhq.data.service;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "nba",url="http://sportsdata.misports.cn", fallback=TeamServiceFallBack.class)
public interface TeamService {
	
	
	@RequestMapping("/beitai/nbaapi/team/list?customer=migu&key=migu&encrypted=65aa9ad706b9c409ad1f0a9e34892ddb&random=13940")
	Map selectTeams() throws Exception;

	
	@RequestMapping("/beitai/nbaapi/player/list?customer=migu&key=migu&encrypted=65aa9ad706b9c409ad1f0a9e34892ddb&random=13940")
	Map selectPlayers(@RequestParam("teamid") String teamid) throws Exception;

}
